package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_tomb_get_relic", desc = "秦始皇陵-获得遗物", autoSave = true, uploadCk = true)
public class LogTombGetRelic extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "获得遗物详情", saveJson = true)
    private List<String> getRelicDetail;

    @FieldTypeAnnotation(desc = "获得时间")
    private Date logTime;

    public LogTombGetRelic(long userId, int activityId, List<String> getRelicDetail) {
        this.userId = userId;
        this.activityId = activityId;
        this.getRelicDetail = getRelicDetail;
        this.logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }

}
